.NET Framework Class Library |
Lazy<(Of <(T>)>) Constructor (LazyThreadSafetyMode) |
Lazy<(Of <(T>)>) Class See Also Send Feedback |
Initializes a new instance of the Lazy<(Of <(T>)>)
class that uses T's default constructor and a specified thread-safety mode.
Namespace:
System
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ mode As LazyThreadSafetyMode _ ) |
C# |
---|
public Lazy( LazyThreadSafetyMode mode ) |
Parameters
- mode
- Type: System.Threading..::.LazyThreadSafetyMode
The lazy thread-safety mode mode
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | mode mode contains an invalid valuee |